package com.wangijun.yuan.admin.system.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wangijun.yuan.admin.system.model.em.UserGender;
import com.wangijun.yuan.admin.system.model.em.UserStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@Schema(description = "用户保存参数")
public class UserSaveParam {
    /**
     * 状态
     */
    @Schema(description = "状态")
    private UserStatus status;

    /**
     * 账号
     */
    @TableField(value = "login_no")
    @Schema(description = "账号")
    private String loginNo;

    /**
     * 用户名称
     */
    @Schema(description = "用户名称")
    private String name;

    @Size(min = 1, message = "至少选择一个角色")
    @Schema(description = "角色ID信息")
    private List<Long> roleIds;
}
